<template>
	<view>
		<view class="pagehead-container" @tap="back">
			<image src="../../static/箭头.png" style="width: 40rpx;height: 40rpx;transform: rotateY(180deg)"></image>
			<text class="fs-white fs-36">返回</text>
			<view style="width: 40rpx;"></view>
		</view>
		<view style="height: 30px"></view>
	</view>
</template>

<script>
export default {
	name: 'PageHead',
	props:{
		backPath:{
			default:'/pages/activity/index'
		}
	},
	data() {
		return {};
	},
	methods: {
		back() {
			uni.redirectTo({
				url: this.backPath,
				complete: () => {
					this.$store.commit('comment/RESET_STATE');
				}
			});
		}
	}
};
</script>

<style lang="scss" scoped>
.pagehead-container {
	position: fixed;
	height: 30px;
	top: 0;
	left: 0;
	padding: 5px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	width: 100vw;
	justify-content: space-between;
	z-index: 999;
}
</style>
